package my.test.mould.perfect;

public abstract class HummerModel {
    public abstract void start();
    public abstract void stop();
    public abstract void alarm();
    public abstract void engineBoom();
    final public void run(){
        if(isAlarm()) {
            this.alarm();
        }

        this.engineBoom();
        this.start();
        this.stop();
    }
    public boolean isAlarm() {
        return true;
    }
}